<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../../common/tag.jsp"%>
<html>
<head>
<title>李宁体育</title>
<%@ include file="../../common/header.jsp"%>
<link href="${ctx }/css/plugins/validator/validator.css"
	rel="stylesheet">
</head>
<body class="gray-bg">
	<div class="row wrapper border-bottom white-bg page-heading">
		<div class="col-lg-10">
			<h2>公众号管理</h2>

		</div>
		<div class="col-lg-2"></div>
	</div>

	<div class="wrapper wrapper-content animated fadeInRight">

		<div class="row">
			<div class="col-lg-12">
				<a href="${redirectUrl }" target=""> <img
					src="https://open.weixin.qq.com/zh_CN/htmledition/res/assets/res-design-download/icon_button3_1.png">
				</a>
			</div>
		</div>
		<div class="row">
			<div class="col-lg-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5>公众号列表</h5>
					</div>
					<div class="ibox-content">

						<div class="table-responsive">
							<table class="table table-striped">
								<thead>
									<tr>
										<th>公众号名称</th>
										<th>授权日期</th>
										<th>微信AppId</th>
										<th>服务类型</th>
										<th>授权状态</th>
										<th>操 作</th>
									</tr>
								</thead>
								<tbody>
									<c:forEach items="${mpList }" var="mp">
										<tr id="${mp.id }">
											<td><c:choose>
													<c:when test="${mp.headImg != null }">
														<img src='${mp.headImg }'
															style="width: 50px; height: 50px;" />
													</c:when>
													<c:otherwise>
														<img src="${ctx }/img/default_mp_head.jpg"
															style="width: 50px; height: 50px;" />
													</c:otherwise>

												</c:choose> ${mp.nickName }</td>
											<td><fmt:formatDate value="${mp.createdTime }"
													pattern="yyyy-MM-dd HH:mm" /></td>
											<td>${mp.appId }</td>
											<td>${mp.serviceTypeInfo=="2"?"服务号":"订阅号" }（${mp.verifyTypeInfo=="0"?"已认证":"未认证" }）</td>
											<td><c:choose>
													<c:when test="${mp.status == 1 }">
														<i class="fa fa-check text-navy"></i>
													</c:when>
													<c:otherwise>
														<i class="fa fa-close text-danger"></i>
													</c:otherwise>

												</c:choose></td>
											<td><a href="javascript:;"
												onclick="options.openDialog(${mp.id })">设 置</a></td>
										</tr>
									</c:forEach>

								</tbody>
							</table>
						</div>

					</div>
				</div>
			</div>

		</div>
	</div>


	<div id="showNewsModal" class="modal fade">
		<div class="modal-dialog" style="width: 500px;">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true">&times;</button>
					<h4 class="modal-title">设置</h4>
				</div>

				<form class="form-horizontal" action="${ctx }/app/saveCrmBrandInfo"
					id="myForm" method="post" role="form">

					<div class="form-group">
						<label class="col-sm-4 control-label">品牌名称</label>
						<div class="col-sm-7">
							<input class="form-control" id="brandName" name="brandName"
								placeholder="品牌名称" type="text" value="" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-4 control-label">品牌ID</label>
						<div class="col-sm-7">
							<input class="form-control" id="brandId" name="brandId"
								placeholder="品牌ID" type="text" value="" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-4 control-label">诸葛IO AppKey</label>
						<div class="col-sm-7">
							<input class="form-control" id="zhugeAppKey" name="zhugeAppKey"
								placeholder="AppKey" type="text" value="" />
						</div>
					</div>

					<div class="modal-footer">
						<button type="button" id="btnSave" class="btn btn-primary">保
							存</button>
						<button type="button" id="btnCloseEmp" class="btn btn-default"
							data-dismiss="modal">取 消</button>
						<input type="hidden" id="mpId" name="mpId" />
					</div>
				</form>
			</div>
		</div>
	</div>
</body>
</html>
<%@ include file="../../common/footer.jsp"%>
<script src="${ctx }/js/plugins/validator/validator.js"></script>
<script>
	var options = {

	};
</script>
<script src="${ctx }/js/view/app/list.js"></script>